from Constants import *
from IsObstacleMet import *
from myro import *

def goForward():
    readings=Readings()
    
    forward(FORWARD_SPEED)
    while 1:
        if readings.takeReading()>THRESHOLD:
            stop()
            return readings.direction
        
    
    